package com.jubao.ejb.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

//@MappedSuperclass
//public abstract class GeneRelation extends GeneEntity {
@Entity
@Table(name = "generelation_tbl", schema = "jubao_database", uniqueConstraints = {})
public class GeneRelation extends GeneEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = 2653683640965222612L;

	@ManyToOne
	private GeneEntity entity;

	@Column(nullable = false)
	private Integer relationId;

	@ManyToOne
	private GeneEntity entity2;

	private Long startDate;

	private Long endDate;

	public GeneEntity getEntity() {
		return entity;
	}

	public void setEntity(GeneEntity entity) {
		this.entity = entity;
	}

	public Integer getRelationId() {
		return relationId;
	}

	public void setRelationId(Integer relationId) {
		this.relationId = relationId;
	}

	public GeneEntity getEntity2() {
		return entity2;
	}

	public void setEntity2(GeneEntity entity2) {
		this.entity2 = entity2;
	}

	public Long getStartDate() {
		return startDate;
	}

	public void setStartDate(Long startDate) {
		this.startDate = startDate;
	}

	public Long getEndDate() {
		return endDate;
	}

	public void setEndDate(Long endDate) {
		this.endDate = endDate;
	}

}
